package com.yue.test;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yue.test.databinding.ActivityMainBinding;
import com.yue.test.sticky.StickyTest2Activity;
import com.yue.test.sticky.StickyTestActivity;

public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding mBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(mBinding.getRoot());
        mBinding.btnTest.setOnClickListener(view -> {
            Intent intent = new Intent(this, TestActivity.class);
            startActivity(intent);
        });
        mBinding.btnTest2.setOnClickListener(view -> {
            Intent intent = new Intent(this, TestActivity2.class);
            startActivity(intent);
        });

        mBinding.btnTest3.setOnClickListener(v -> {
            Intent intent = new Intent(this, TestActivity3.class);
            startActivity(intent);
        });
        mBinding.btnTest4.setOnClickListener(v -> {
            Intent intent = new Intent(this, StickyTestActivity.class);
            startActivity(intent);
        });

        mBinding.btnTest5.setOnClickListener(v -> {
            Intent intent = new Intent(this, StickyTest2Activity.class);
            startActivity(intent);
        });

    }
}